package com.simon.hse.activity.safe.jobticket;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.simon.hse.R;
import com.simon.hse.activity.BaseActivity;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;

/**
 * 作业票管理
 */
@SuppressWarnings("all")
@ContentView(R.layout.activity_job_ticket)
public class JobTicketActivity extends BaseActivity {
    @ViewInject(R.id.tv_common_title)
    TextView mTv_common_title;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mTv_common_title.setText("作业票管理");
    }

    @Event(value = {R.id.iv_common_left})
    private void back(View view) {
        switch (view.getId()) {
            case R.id.iv_common_left:
                finish();
                break;
        }
    }

    @Event(value = {R.id.iv_common_left, R.id.ll_commonly, R.id.ll_simple, R.id.ll_fire, R.id.ll_earth, R.id.ll_breakage
            , R.id.ll_high, R.id.ll_pipeline, R.id.ll_electric, R.id.ll_blind, R.id.ll_limited, R.id.ll_lock, R.id.ll_notlock})
    private void jump(View view) {
        switch (view.getId()) {
            case R.id.iv_common_left:
                finish();
                break;
            case R.id.ll_commonly:
                startActivity(new Intent(JobTicketActivity.this, JobTicketCommonlyManageActivity.class));
                break;
            case R.id.ll_simple:
                startActivity(new Intent(JobTicketActivity.this, JobTicketSimpleManageActivity.class));
                break;
            case R.id.ll_fire:
                startActivity(new Intent(JobTicketActivity.this, JobTicketFireManageActivity.class));
                break;
            case R.id.ll_earth:
                startActivity(new Intent(JobTicketActivity.this, JobTicketEarthManageActivity.class));
                break;
            case R.id.ll_breakage:
                startActivity(new Intent(JobTicketActivity.this, JobTicketBreakageManageActivity.class));
                break;
            case R.id.ll_high:
                startActivity(new Intent(JobTicketActivity.this, JobTicketHighManageActivity.class));
                break;
            case R.id.ll_pipeline:
                startActivity(new Intent(JobTicketActivity.this, JobTicketPipelineManageActivity.class));
                break;
            case R.id.ll_electric:
                startActivity(new Intent(JobTicketActivity.this, JobTicketElectricManageActivity.class));
                break;
            case R.id.ll_blind:
                startActivity(new Intent(JobTicketActivity.this, JobTicketBlindManageActivity.class));
                break;
            case R.id.ll_limited:
                startActivity(new Intent(JobTicketActivity.this, JobTicketLimitedManageActivity.class));
                break;
            case R.id.ll_lock:
                startActivity(new Intent(JobTicketActivity.this, JobTicketLockManageActivity.class));
                break;
            case R.id.ll_notlock:
                startActivity(new Intent(JobTicketActivity.this, JobTicketNoLockManageActivity.class));
                break;
        }
    }
}
